package com.bindatax.core;

import com.bindatax.core.log.LogOutInterface;
import com.bindatax.core.log.LogOutManager;

import java.util.Random;

/**
 *
 */
public class BinDataxApp{
    private final static LogOutInterface LOG = LogOutManager.get();
    public static void main(String[] args) {
        LOG.info("启动多线程入库程序.....");
        Random random = new Random();
        LOG.info("正在自检中[0%]");
        for(int i = 1 ; i < 10 ; i++ ){
            LOG.info("正在自检中["+(i*10)+"%]");
            try {
                Thread.sleep( random.nextInt(100) + 100 );
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        LOG.info("正在自检中[100%]");
        LOG.info("程序自检完成。");
    }
}
